﻿<%@ Control Language="C#"  %>
<%@ Register src="../module/Admincenter-Public-Approved.ascx" tagname="Approved" tagprefix="inal" %>

<script runat="server">
    private int cid = 0;
    private int lang = 1;
    private int Top_size = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Cid == 0)
            Cid = Utils.GetQueryString("cid", 0);
        if (Item_Lang == 1)
            Item_Lang = Utils.GetQueryString("lang", 1);
        Product pro = new Product();
        Repeater_List.DataSource = pro.List(Cid, Top_Size, Item_Lang);
        Repeater_List.DataBind();
    }

    public int Item_Lang
    {
        get { return lang; }
        set { lang = value; }
    }
    public int Cid
    {
        get { return cid; }
        set { cid = value; }
    }
    public int Top_Size
    {
        get { return Top_size; }
        set { Top_size = value; }
    }
</script>
<table class="datas">
<thead>
    <tr>
    <td class="w80"></td>
    <td>Num</td>
    <td></td>
    <td><%=Lang.Show("Title") %></td>
    <td><%=Lang.Show("Item_Price")%></td>
    <td><%=Lang.Show("Columns") %> </td>
    <td><%=Lang.Show("Order")%></td>
    <td><%=Lang.Show("Create_Time")%></td>
    <td class="Narrow"></td>
    <td class="Narrow"></td>
    <td class="Narrow"></td>
    <td class="Narrow"></td>
        </tr>
</thead>
<tbody>
<asp:Repeater runat="server" ID="Repeater_List">
<ItemTemplate>
    <tr id="TR<%#Eval("Item_Id") %>">
        <td><inal:Approved runat="server" Item_Id='<%#Utils.ToInt(Container.DataItem,"Item_Id") %>' Item_Status='<%#Utils.ToInt(Container.DataItem,"Item_Status") %>' Item_Typ="2" /></td>
        <td><code> . <%#Eval("Item_Id")%></code></td>
        <td><img class="item" alt="<%#Eval("Item_Name") %>" src="../DataFile/Product/<%#Eval("Create_Time","{0:yyyyMM}") %>/<%#Eval("Create_Time","{0:ddHHmmss}") %>_ssss.jpg" /></td>
        <td><%#Eval("Item_Name")%></td>
        <td><code><%#Eval("Item_Price")%></code></td>
        <td><%#Eval("Name")%></td>
        <td><code><%#Eval("Orders")%></code></td>
        <td><time><%#Eval("Create_Time","{0:yyyy/MM/dd<br>HH-mm-ss}")%></time></td>
        <td><a href="Ploting.aspx?id=<%#Eval("Item_Id") %>&lang=<%=Item_Lang %>&obj_typ=2&isreturn=1"><%=Lang.Show("CoverPage")%></a></td>
        <td><a href="../home/Product-View.aspx?id=<%#Eval("Item_Id") %>&lang=<%=Utils.GetQueryString("lang",1) %>" target="_blank"><%=Lang.Show("View")%></a></td>
        <td><a href="Product-AddEdit.aspx?id=<%#Eval("Item_Id") %>&lang=<%=Item_Lang %>"><%=Lang.Show("Edit")%></a></td>
        <td><a href="javascript:Del(<%#Eval("Item_Id") %>,2)" class="del"><%=Lang.Show("Del")%></a></td>
    </tr>
</ItemTemplate>
</asp:Repeater>
</tbody>
</table>

